package com.fightingFish.user.service.impl;

import com.fightingFish.user.bean.Anchor;
import com.fightingFish.user.bean.User;
import com.fightingFish.user.dao.AttentionDao;
import com.fightingFish.user.dao.impl.AttentionDaoImpl;
import com.fightingFish.user.service.AttentionService;

import java.util.List;

public class AttentionServiceImpl implements AttentionService {
    private AttentionDao ad = new AttentionDaoImpl();
    /**
     * 方法概述：调用方法查询该用户关注的用户信息
     * @param userId
     * @return
     */
    @Override
    public List<User> getAttention(int userId) {

        return ad.getAttention(userId);
    }

    /**
     * 方法概述： 取消关注
     * @param concernId
     * @param beConcernedId
     */
    @Override
    public boolean cancelAttention(int concernId, int beConcernedId) {
        return ad.cancelAttention(concernId,beConcernedId);
    }


}
